import './assets/main.css'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
// 导入Ant Design Vue组件库
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';

//引入京东组件库
import NutUI from "@nutui/nutui";
import "@nutui/nutui/dist/style.css";

// 阿里矢量图标库
import '@/assets/iconfont/iconfont.css'
// layui组件库
import Layui from '@layui/layui-vue'
import '@layui/layui-vue/lib/index.css'
import '@/assets/iconfont/iconfont.js'
// 引入vant
import Vant from 'vant';
import 'vant/lib/index.css';
// element plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 引入i18n
// @ts-ignore
import i18n from './i18n/index.js';

const app = createApp(App)

// 注册i18n
app.use(i18n)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
// 注册Ant Design Vue组件库
app.use(Antd)
app.use(createPinia())
app.use(router)
app.use( NutUI )
app.use(Vant)
app.use(ElementPlus)
app.use(Layui)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.mount('#app')
